import request from '@/utils/request'

export function listmmitemHead(query) {
  return request({
    url: '/maintain/mmitemHead/list',
    method: 'get',
    params: query
  })
}

export function createmmitemHead(data) {
  return request({
    url: '/maintain/mmitemHead/create',
    method: 'post',
    data
  })
}

export function readmmitemHead(data) {
  return request({
    url: '/maintain/mmitemHead/get/' + data.id,
    method: 'get'
  })
}

export function updatemmitemHead(data) {
  return request({
    url: '/maintain/mmitemHead/update',
    method: 'post',
    data
  })
}

export function deletemmitemHead(data) {
  return request({
    url: '/maintain/mmitemHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
